{if condition="$page_res.len"}
<div class="col-md-12">
    <div class="pagination pagination-primary" style="display: inline-block; text-align: center;">
        {volist name="$page_res.len" id="row"}
        <div class="page-item {$page_res.p == $row+1 ? 'active' : ''}" style="float: left; ">
            <a class="page-link" href="{$page_res.url}&p={$row}">{$row+1}</a>
        </div>
        {/volist}
    </div>
</div>
{/if}